package com.pubinfo.passbook.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author xuhong
 * @since 2021-11-23
 */
@TableName(value = "t_source_artificial")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TSourceArtificial", description = "单据录入实体类")
public class TSourceArtificial implements Serializable {
  private static final long serialVersionUID = 1L;
  @TableId(type = IdType.ASSIGN_ID, value = "id")
  private String id;
  /**
   * 花费金额
   */
  @ApiModelProperty(value = "花费金额")
  private String payAmount;
  
  /**
   * 核定金额
   */
  @ApiModelProperty(value = "核定金额")
  private BigDecimal approvedAmount;
  
  /**
   * 数量
   */
  @ApiModelProperty(value = "单据类型 330601 门诊 330602 住院")
  private Integer type;
  @ApiModelProperty(value = "发票/票据数量")
  private Integer number;
  @ApiModelProperty("单据是否被系统锁定 N 未锁定，Y 锁定")
  private String systemIsLocked = "N";
  /**
   * 判断是否发起报销
   */
  @ApiModelProperty(value = "是否发起报销")
  private Integer isReimbursement = 0;
  
  @ApiModelProperty(value = "公司代码", hidden = true)
  private String nsrsbh;
  /**
   * 报销用户
   */
  @ApiModelProperty(value = "报销用户")
  private String acct;
  /**
   * 添加用户
   */
  @ApiModelProperty(value = "添加用户即登录用户")
  private String createUser;
  /**
   * 添加时间
   */
  @TableField(fill = FieldFill.INSERT)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @ApiModelProperty(value = "创建时间")
  private Date createTime;
  
}
